package com.ljph.ljaker.controller;

import com.jfinal.aop.Clear;
import com.jfinal.core.Controller;
import com.ljph.jfinal.base.BaseController;
import com.ljph.ljaker.app.AppConfig;
import com.ljph.ljaker.interceptor.LoginInterceptor;

/**
 * Created by yuzhou on 16/9/2.
 */
@Clear({LoginInterceptor.class})
public class CommonController extends BaseController {

    public void index(){
        if(AppConfig.me().getPropertyToBoolean("webDebug", false) || getParaToBoolean("debug", false)) {
            setAttr("debug", "true");
        }
    }
}
